<?php

/**
 * 系统配置演示数据
 */
$data = [
    // 基础设置
    ['group_name' => 'base', 'conf_name' => 'name', 'conf_title' => '站点名称', 'conf_tip' => '', 'component_name' => 'textbox',],
    ['group_name' => 'base', 'conf_name' => 'logo', 'conf_title' => '网站LOGO', 'conf_tip' => '', 'component_name' => 'imguploader',],
    ['group_name' => 'base', 'conf_name' => 'status', 'conf_title' => '站点状态', 'conf_tip' => '', 'component_name' => 'radio', 'component_data' => '0=关闭&1=开启'],
    ['group_name' => 'base', 'conf_name' => 'notice', 'conf_title' => '站点维护公告', 'conf_tip' => '', 'component_name' => 'editor', 'default_value' => '抱歉，网站正在维护中...'],
    ['group_name' => 'base', 'conf_name' => 'seo_title', 'conf_title' => 'SEO 标题', 'conf_tip' => '', 'component_name' => 'textbox',],
    ['group_name' => 'base', 'conf_name' => 'seo_description', 'conf_title' => 'SEO 描述', 'conf_tip' => '', 'component_name' => 'textarea',],
    ['group_name' => 'base', 'conf_name' => 'license', 'conf_title' => '备案信息', 'conf_tip' => 'ICP备案号、公安备案号', 'component_name' => 'textarea'],
    ['group_name' => 'base', 'conf_name' => 'footer_script', 'conf_title' => '底部HTML代码', 'conf_tip' => '', 'component_name' => 'editor',],
    ['group_name' => 'base', 'conf_name' => 'sensitive_words', 'conf_title' => '敏感词库', 'conf_tip' => '', 'component_name' => 'textarea',],
    // 小程序设置
    ['group_name' => 'miniprogram', 'conf_name' => 'appid', 'conf_title' => 'AppID', 'conf_tip' => '', 'component_name' => 'textbox'],
    ['group_name' => 'miniprogram', 'conf_name' => 'secret', 'conf_title' => 'AppSecret', 'conf_tip' => '', 'component_name' => 'textbox'],
    ['group_name' => 'miniprogram', 'conf_name' => 'app_status', 'conf_title' => '小程序状态', 'conf_tip' => '', 'component_name' => 'radio', 'component_data' => '0=关闭&1=开启'],
    ['group_name' => 'miniprogram', 'conf_name' => 'kefu_wxid', 'conf_title' => '客服微信号', 'conf_tip' => '', 'component_name' => 'textbox', 'default_value' => ''],
    // 后台设置
    ['group_name' => 'dashboard', 'conf_name' => 'app_name', 'conf_title' => '应用名称', 'conf_tip' => '', 'component_name' => 'textbox'],
    ['group_name' => 'dashboard', 'conf_name' => 'page_size', 'conf_title' => '分页数量', 'conf_tip' => '', 'component_name' => 'numbox', 'default_value' => '10'],
    ['group_name' => 'dashboard', 'conf_name' => 'theme', 'conf_title' => '主题样式', 'conf_tip' => '', 'component_name' => 'select', 'component_data' => 'dark=暗色&pink=粉色&green=绿色&blue=蓝色'],
    ['group_name' => 'dashboard', 'conf_name' => 'login_type', 'conf_title' => '登录方式', 'conf_tip' => '账号密码、手机验证码、邮箱', 'component_name' => 'radio', 'component_data' => 'account=账号登录&mobile=手机登录&email=邮箱登录'],
    ['group_name' => 'dashboard', 'conf_name' => 'ip_whitelist', 'conf_title' => 'IP 白名单', 'conf_tip' => '允许登录的IP', 'component_name' => 'textarea',],
    ['group_name' => 'dashboard', 'conf_name' => 'ip_blacklist', 'conf_title' => 'IP 黑名单', 'conf_tip' => '禁止登录的IP', 'component_name' => 'textarea'],
    // 商店信息
    ['group_name' => 'shop', 'conf_name' => 'name', 'conf_title' => '商店名称', 'conf_tip' => '', 'component_name' => 'textbox',],
    ['group_name' => 'shop', 'conf_name' => 'tel', 'conf_title' => '商店电话', 'conf_tip' => '', 'component_name' => 'textbox',],
    ['group_name' => 'shop', 'conf_name' => 'email', 'conf_title' => '商店邮箱', 'conf_tip' => '', 'component_name' => 'textbox',],
    ['group_name' => 'shop', 'conf_name' => 'address', 'conf_title' => '商店地址', 'conf_tip' => '', 'component_name' => 'textbox',],
    ['group_name' => 'shop', 'conf_name' => 'qrcode', 'conf_title' => '商店二维码', 'conf_tip' => '', 'component_name' => 'imguploader',],
    ['group_name' => 'shop', 'conf_name' => 'intro', 'conf_title' => '商店简介', 'conf_tip' => '', 'component_name' => 'textarea',],
    // 分销设置
    ['group_name' => 'promote', 'conf_name' => 'ommission_rate_of_platform', 'conf_title' => '平台分成比例', 'component_name' => 'textbox', 'default_value' => '20'],
    ['group_name' => 'promote', 'conf_name' => 'commission_rate_of_promoter1', 'conf_title' => '一级推广员分成比例',  'component_name' => 'textbox', 'default_value' => '15'],
    ['group_name' => 'promote', 'conf_name' => 'commission_rate_of_promoter2', 'conf_title' => '二级推广员分成比例', 'component_name' => 'textbox', 'default_value' => '5'],
    ['group_name' => 'promote', 'conf_name' => 'withdrawal_min_amount', 'conf_title' => '单笔提现最低限额', 'component_name' => 'numbox', 'default_value' => '10'],
    ['group_name' => 'promote', 'conf_name' => 'withdrawal_max_amount', 'conf_title' => '单笔提现最高限额', 'component_name' => 'numbox', 'default_value' => '1000'],
    ['group_name' => 'promote', 'conf_name' => 'withdrawal_times', 'conf_title' => '每天提现次数', 'component_name' => 'numbox', 'default_value' => '1'],
    ['group_name' => 'promote', 'conf_name' => 'withdrawal_rule', 'conf_title' => '提现规则', 'component_name' => 'editor', 'default_value' => ''],
    // 用户设置
    ['group_name' => 'user', 'conf_name' => 'allow_regist', 'conf_title' => '允许用户注册', 'conf_tip' => '', 'component_name' => 'radio', 'component_data' => '0=关闭&1=开启'],
    ['group_name' => 'user', 'conf_name' => 'regist_need_code', 'conf_title' => '注册需要邀请码', 'conf_tip' => '', 'component_name' => 'radio', 'component_data' => '0=否&1=是'],
    ['group_name' => 'user', 'conf_name' => 'regist_type', 'conf_title' => '注册方式', 'conf_tip' => '账号密码、手机验证码、邮箱', 'component_name' => 'checkbox', 'component_data' => 'account=账号登录&mobile=手机登录&email=邮箱登录'],
    ['group_name' => 'user', 'conf_name' => 'allow_login', 'conf_title' => '允许用户登录', 'conf_tip' => '', 'component_name' => 'radio', 'component_data' => '0=关闭&1=开启'],
    ['group_name' => 'user', 'conf_name' => 'login_type', 'conf_title' => '用户登录方式', 'conf_tip' => '账号密码、手机验证码、邮箱', 'component_name' => 'checkbox', 'component_data' => 'account=账号登录&mobile=手机登录&email=邮箱登录'],
    ['group_name' => 'user', 'conf_name' => 'default_avatar', 'conf_title' => '默认头像', 'component_name' => 'textbox', 'default_value' => '/static/images/avatar/1.jpg'],
    ['group_name' => 'user', 'conf_name' => 'ip_whitelist', 'conf_title' => 'IP 白名单', 'conf_tip' => '', 'component_name' => 'textarea',],
    ['group_name' => 'user', 'conf_name' => 'ip_blacklist', 'conf_title' => 'IP 黑名单', 'conf_tip' => '', 'component_name' => 'textarea',],
    // 上传配置
    ['group_name' => 'upload', 'conf_name' => 'allow_upload', 'conf_title' => '允许上传', 'conf_tip' => '', 'component_name' => 'radio', 'component_data' => '0=关闭&1=开启'],
    ['group_name' => 'upload', 'conf_name' => 'max_file_size', 'conf_title' => '最大文件尺寸', 'conf_tip' => '', 'component_name' => 'numbox', 'default_value' => '2097152'],
    ['group_name' => 'upload', 'conf_name' => 'allow_file_type', 'conf_title' => '允许上传文件类型', 'conf_tip' => '', 'component_name' => 'radio', 'component_data' => 'all=不限&img=图片'],
    // 短信设置
    ['group_name' => 'sms', 'conf_name' => 'provider', 'conf_title' => '服务商', 'conf_tip' => '', 'component_name' => 'radio', 'component_data' => 'juhe=聚合短信'],
    ['group_name' => 'sms', 'conf_name' => 'send_url', 'conf_title' => '短信接口URL', 'conf_tip' => '', 'component_name' => 'textbox',],
    ['group_name' => 'sms', 'conf_name' => 'appkey', 'conf_title' => '申请的APPKEY', 'conf_tip' => '', 'component_name' => 'textbox',],
    ['group_name' => 'sms', 'conf_name' => 'tpl_id', 'conf_title' => '申请的短信模板ID', 'conf_tip' => '', 'component_name' => 'textbox',],
    ['group_name' => 'sms', 'conf_name' => 'tpl_value', 'conf_title' => '短信模板内容', 'conf_tip' => '', 'component_name' => 'textbox',],
    // 邮箱设置
    ['group_name' => 'email', 'conf_name' => 'transport', 'conf_title' => '传输方式', 'conf_tip' => '', 'component_name' => 'radio', 'component_data' => 'smtp=SMTP'],
    ['group_name' => 'email', 'conf_name' => 'host', 'conf_title' => 'SMTP服务器', 'conf_tip' => '', 'component_name' => 'textbox',],
    ['group_name' => 'email', 'conf_name' => 'port', 'conf_title' => '服务器端口', 'conf_tip' => '服务器端口 25 或者465 具体要看邮箱服务器支持', 'component_name' => 'textbox',],
    ['group_name' => 'email', 'conf_name' => 'user', 'conf_title' => 'SMTP 用户名', 'conf_tip' => '即邮箱的用户名', 'component_name' => 'textbox',],
    ['group_name' => 'email', 'conf_name' => 'password', 'conf_title' => 'SMTP 密码', 'conf_tip' => '部分邮箱是授权码(例如163邮箱)', 'component_name' => 'textbox',],
    ['group_name' => 'email', 'conf_name' => 'smtp_secure', 'conf_title' => '加密协议', 'conf_tip' => '允许 TLS 或者ssl协议', 'component_name' => 'radio', 'component_data' => '0=关闭&tls=TLS&ssl=SSL',],
    ['group_name' => 'email', 'conf_name' => 'sendemail_from_address', 'conf_title' => '发件邮箱', 'conf_tip' => '发送邮件的邮箱全名', 'component_name' => 'textbox',],
    ['group_name' => 'email', 'conf_name' => 'sendemail_from_name', 'conf_title' => '发件别称', 'conf_tip' => '发送邮件显示的名称', 'component_name' => 'textbox',],
    // 协议管理
    ['group_name' => 'agreement', 'conf_name' => 'registration ', 'conf_title' => '用户注册协议', 'conf_tip' => '', 'component_name' => 'editor',],
    ['group_name' => 'agreement', 'conf_name' => 'privacy', 'conf_title' => '用户隐私协议', 'conf_tip' => '', 'component_name' => 'editor',],
];
return ['table' => 'sw_sys_configs', 'text' => '系统配置', 'truncate' => true, 'data' => $data, 'append' => ['is_locked' => 1, 'created_at' => time(), 'updated_at' => time()]];
